Java 8 新特性 Stream类的collect方法
1.Collectors.toList():转换成List集合。/ Collectors.toSet():转换成set集合。 2.Collectors.toCollection(Tre ...
1.Collectors.toList():转换成List集合。/ Collectors.toSet():转换成set集合。 2.Collectors.toCollection(Tre ...
目录 函数式接口 1. 函数式接口定义 注意: 重写 Object 类里的方法不会导致函数式接口失效 2 ...
目录 Optional 理解 1. 含义 注意 基于值的类(Value-based Classes) 2 ...